package org.uim.cricket.storage.deserialize.clean;

import org.uim.cricket.entities.inning.InningExtras;

public class NormalizeInningExtras {

	public void normalize(InningExtras extras) {
		if (extras.getBies() < 0) extras.setBies(0);
		if (extras.getLegBies() < 0) extras.setLegBies(0);
		if (extras.getNoBalls() < 0) extras.setNoBalls(0);
		if (extras.getOthers() < 0) extras.setOthers(0);
		if (extras.getPanelties() < 0) extras.setPanelties(0);
		if (extras.getWides() < 0) extras.setWides(0);
	}
	
}
